package com.jxc.model.po;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/***********************************************************************
 * Module:  SaleReturnlistItem.java
 * Author:  Administrator
 * Purpose: Defines the Class SaleReturnlistItem
 ***********************************************************************/

/**
 * 销售退货单明细
 * 
 * @pdOid 292b21c7-10d8-4746-b3ab-9514bb51b4ea
 */
@Entity
@Table(name = "XSGL_SALERETURNLIST_ITEM")
public class SaleReturnlistItem extends IdEntity implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -8100878946931533859L;
	/**
	 * 商品
	 * 
	 * @pdOid 754a7d33-1ee7-43bc-b36b-05151e1ed7c3
	 */
	private Goods goods;
	/**
	 * 退货数量
	 * 
	 * @pdOid ec71fe4d-c137-45a5-811b-d9208a130e8c
	 */
	private Integer num;
	/**
	 * 退货总额
	 * 
	 * @pdOid 177d0692-1890-45ca-a93b-926fa56eca21
	 */
	private Double total;
	/**
	 * 销售退货单
	 * 
	 * @pdOid 8015da8c-49d3-4bd4-8769-67ce209141db
	 */
	private SaleReturnlist saleReturnlist;
	/**
	 * 备注
	 * 
	 */
	private String remark;

	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@ManyToOne
	@JoinColumn(name = "GOODS_ID")
	public Goods getGoods() {
		return goods;
	}

	public void setGoods(Goods goods) {
		this.goods = goods;
	}

	@Column(name = "NUM", length = 10)
	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	@Column(name = "TOTAL", length = 10, precision = 2)
	public Double getTotal() {
		return total;
	}

	public void setTotal(Double total) {
		this.total = total;
	}

	@ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.REMOVE)
	@JoinColumn(name = "SALERETURNLIST_ID")
	public SaleReturnlist getSaleReturnlist() {
		return saleReturnlist;
	}

	public void setSaleReturnlist(SaleReturnlist saleReturnlist) {
		this.saleReturnlist = saleReturnlist;
	}

}